import { defineStore } from "pinia";
import { ref } from "vue";

export const useAddressStore = defineStore('address', () => {
  // 选中的收货地址
  const selectedAddress = ref()
  // 设置选中地址
  const changeSelectedAddress = (val) => {
    selectedAddress.value = val
  }
  return { selectedAddress, changeSelectedAddress }
})